package text
{
	import mx.controls.TextArea;
	import mx.core.IUITextField;
	import mx.core.UITextField;

	public class MyTextArea extends TextArea
	{
		public var tf:IUITextField;// = IUITextField(createInFontContext(UITextField));
		
		public function MyTextArea()
		{
			super();
			createChildren();
			this.editable = false;
			
		}
		
		public function setBackColor(color:uint):void{
			
			
			
			textField.background = true;
			//textField.backgroundColor = 0x00FFFF;
			textField.backgroundColor = color;			
			
			//this.textField.background = true;			
		}
		
		public function getBackColor():uint{
			return textField.backgroundColor;
		}
		
		public function getTextField():IUITextField{
			return this.textField;
		}
		
		
	}
}